﻿<%@ Page Language="C#"  MasterPageFile="~/Index.Master" AutoEventWireup="true" CodeBehind="operatorlog.aspx.cs" Inherits="Web.manager.operatorlog" %>

<%@ Register Src="~/controls/message.ascx" TagName="message" TagPrefix="uc" %>
<%@ Register Src="~/Controls/GVPageManager.ascx" TagPrefix="ui" TagName="gv" %>
<%@ Register src="~/controls/ShortDate.ascx" tagname="ShortDate" tagprefix="uc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
        <div class="content-box">
            <!-- Start Content Box -->
            <div class="content-box-header">
                <h3>
                    操作日志查询</h3>
                
                <div class="clear">
                </div>
            </div>
            <!-- End .content-box-header -->
            <div class="content-box-content">
                <div class="tab-content default-tab" id="tab1">

                <div>用户名称：
                                <asp:TextBox ID="txb_keyword" CssClass="text-input small-input" runat="server"></asp:TextBox>
                                
                                 &nbsp;<label>开始时间：</label><uc1:ShortDate ID="txtStartTime" runat="server" />

                                &nbsp;<label>结束时间：</label><uc1:ShortDate ID="txtEndTime" runat="server" />
                                <asp:Button ID="btn_save" CssClass="button" runat="server" 
                        Text="查询" onclick="btn_save_Click"  />
                                </div>

                    <uc:message ID="u_message" Visible="false" runat="server" />

                    <asp:GridView ID="GridView1" AutoGenerateColumns="False" runat="server"
                   >
                        <Columns>
                            <asp:BoundField DataField="userid" HeaderText="用户编号" SortExpression="userid" HeaderStyle-Width="80px" />
                            <asp:BoundField DataField="loginid" HeaderText="登录名" HeaderStyle-Width="50px" />
                            <asp:BoundField DataField="username" HeaderText="昵称" HeaderStyle-Width="50px" />
                            <asp:BoundField DataField="OperDate" HeaderText="登录时间" HeaderStyle-Width="120px" />
                            <asp:TemplateField Visible="false">
                            <HeaderTemplate>操作模块</HeaderTemplate>
                            <ItemTemplate>
                            <a href="<%#Eval("Url") %>"><%#Eval("ModuleName")%></a>
                            </ItemTemplate></asp:TemplateField>
                            <asp:BoundField DataField="Content" HeaderText="操作内容" />
                            <asp:BoundField DataField="LocalIp" HeaderText="登录IP" />
                        </Columns>
                    </asp:GridView>
                    <ui:gv ID="GV" runat="server" />
                </div>
                <!-- End #tab1 -->
            </div>
            <!-- End .content-box-content -->
        </div>
    </form>
</asp:Content>